package com.cuicuisha.gxyp.feign.user;

import com.cuicuisha.gxyp.model.entity.user.UserAddress;
import com.cuicuisha.gxyp.model.entity.user.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: UserFeignClient
 * Description:
 *
 * @Author 脆脆鲨
 * @Create 2024-09-22 15:25
 * @Version 1.0
 */
@FeignClient(value = "service-user")
public interface UserFeignClient {

    @GetMapping("/api/user/userInfo/auth/checkUserInfo/{token}")
    public UserInfo checkUserInfo(@PathVariable String token);

    @GetMapping("/api/user/userAddress/getUserAddress/{id}")
    public UserAddress getUserAddress(@PathVariable Long id);
}
